package com.bruce.pattern.behavioral.interpreter;

/**
 * 主要用解释该表达式的值
 *
 * Created by bruce on 2018/11/10 18:32
 */
public class ValueNode implements Node {

    private int value;

    public ValueNode(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return this.value;
    }
}
